import {defHttp} from '/@/utils/http/axios';

enum Api {
  list = '/manageApi/caishuiTaskSettle/list',
  itemList = '/manageApi/caishuiTaskSettle/itemList',
  importExcel = '/manageApi/caishuiTaskSettle/importExcel',
  exportXls = '/manageApi/caishuiTaskSettle/exportXls',
  caishuiTaskSettleItemList = '/manageApi/caishuiTaskSettle/queryCaishuiTaskSettleItemByMainId',
}

/**
 * 导出api
 * @param params
 */
export const getExportUrl = Api.exportXls;

/**
 * 导入api
 */
export const getImportUrl = Api.importExcel;

/**
 * 列表接口
 * @param params
 */
export const list = (params) => defHttp.get({url: Api.list, params});

/**
 * 详情列表接口
 * @param params
 */
export const itemList = (params) => defHttp.get({url: Api.itemList, params});

/**
 * 子表列表接口
 * @param params
 */
export const taskSettleItemList = (params) => defHttp.get({url: Api.caishuiTaskSettleItemList, params},{isTransformResponse:false});
